package com.example.clxy.dao;

import com.example.clxy.entity.Platform;
import com.example.clxy.result.business.PageResult.PlatformPageResult;
import com.example.clxy.result.business.PlatformResult;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PlatformMapper {
    int deleteByPrimaryKey(String platformid);

    int insert(Platform record);

    int insertSelective(Platform record);

    Platform selectByPrimaryKey(String platformid);

    int updateByPrimaryKeySelective(Platform record);

    int updateByPrimaryKey(Platform record);

    int deletePlatform(String platformid);

    List<PlatformPageResult> getPlatformList(@Param("platformname") String platformname,
                                             @Param("platformintro") String platformintro,
                                             @Param("credit") String credit,
                                             @Param("platformhour") String platformhour,
                                             @Param("begin") int begin,
                                             @Param("end") int end,
                                             @Param("pagesize") int pagesize);

    PlatformResult getPlatformById(String platformid);

    String[] getAllPlatfromName();

    List<PlatformPageResult> getPlatformListSimple(@Param("platformname") String platformname,
                                             @Param("platformintro") String platformintro,
                                             @Param("credit") String credit,
                                             @Param("platformhour") String platformhour,
                                             @Param("begin") int begin,
                                             @Param("end") int end,
                                             @Param("pagesize") int pagesize);
}